package kr.nextree.edu.opendic.wizards;
import org.eclipse.jface.wizard.Wizard;

public class MyWizard extends Wizard {

    private MyPageOne one;
    private MyPageTwo two;
    private MyPageThree three;

    public MyWizard() {
        super();
        setNeedsProgressMonitor(true);
    }

    @Override
    public void addPages() {
        one = new MyPageOne();
        two = new MyPageTwo();
        three = new MyPageThree();
        addPage(one);
        addPage(two);
        addPage(three);
    }

    @Override
    public boolean performFinish() {

        // just put the result to the console, imagine here much more
        // intelligent stuff.
        System.out.println(one.getText1());
        System.out.println(two.getText1());
        System.out.println(three.getText1());

        return true;
    }
}

